home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / _AlertStyle.as < prev    next >
Text File  |  2009-12-16  |  1KB  |  45 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _AlertStyle
  8.    {
  9.        
  10.       
  11.       public function _AlertStyle()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function init(param1:IFlexModuleFactory) : void
  17.       {
  18.          var fbs:IFlexModuleFactory = param1;
  19.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Alert");
  20.          if(!style)
  21.          {
  22.             style = new CSSStyleDeclaration();
  23.             StyleManager.setStyleDeclaration("Alert",style,false);
  24.          }
  25.          if(style.defaultFactory == null)
  26.          {
  27.             style.defaultFactory = function():void
  28.             {
  29.                this.paddingTop = 2;
  30.                this.borderColor = 8821927;
  31.                this.paddingLeft = 10;
  32.                this.color = 16777215;
  33.                this.roundedBottomCorners = true;
  34.                this.paddingRight = 10;
  35.                this.backgroundAlpha = 0.9;
  36.                this.paddingBottom = 2;
  37.                this.borderAlpha = 0.9;
  38.                this.buttonStyleName = "alertButtonStyle";
  39.                this.backgroundColor = 8821927;
  40.             };
  41.          }
  42.       }
  43.    }
  44. }
  45.